<%@page import="org.apache.shiro.SecurityUtils"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="../common/init_context.jsp"%>
<%@ page import="com.gopay.cashier.web.utils.CashierConfig" %>
<%@ page import="com.gopay.cashier.domain.bean.LoginUser" %>
<div class="pgweb-topbar">
	<div class="wrap fix">
		<div class="floatLeft">
			<a href="https://www.gopay.com.cn/">国付宝首页</a>
			|<a class="pgweb-icon-weibo" href="http://weibo.com/gfb0125">国付宝微博</a>
			<%-- |<a href="https://www.gopay.com.cn/helpcenterV2/channel-7100.html">帮助中心</a> --%>
		</div>
		<div class="floatRight">
			<shiro:authenticated>
				<%
				LoginUser user = (LoginUser)SecurityUtils.getSubject().getPrincipal();
				String title = user.getTitle();
				String email = user.getUser().getEmail();
				%>
				<span class="pgweb-icon-userinfo">您好!&nbsp;<%=title%></span>

				<c:choose>
					<c:when test="${sessionScope.gopayUser ne null}">
                        <a class="pgweb-icon-out" href="${ctx }/logout.shtml?orderKey=<%=request.getParameter("orderKey")%>&orderId=<%=request.getParameter("orderId")%>&gopayUser=<%=email%>">退出</a>
					</c:when>
					<c:otherwise>
                        <a class="pgweb-icon-out" href="${ctx }/logout.shtml?orderKey=<%=request.getParameter("orderKey")%>&orderId=<%=request.getParameter("orderId")%>">退出</a>
					</c:otherwise>
				</c:choose>
			</shiro:authenticated>
		</div>
	</div>
</div>
<div class="wrap-header">
	<div class="header1024 fix">
		<div class="logo">
			<span>
				<img src="${ctx}/static/img/pgweb_logo.gif" alt="国付宝" />
			</span>
		</div>
	</div>
</div>
